{include file="common/_meta"}

<title>战绩列表 - 会员管理 - H-ui.admin v3.0</title>
<meta name="keywords" content="H-ui.admin v3.0,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.0，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>

{include file="common/_header"}
{include file="common/_menu"}




<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span> 战绩列表<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
        <button class="btn-refresh" style="display: none" onclick="btn_refresh()">btn-refresh</button></nav>
    <div class="Hui-article">



        <article class="cl pd-20">
            <form action="" method="post">
                <div class="text-c"> 日期范围：
                    <input type="text" onfocus="WdatePicker({ maxDate:'#F{ $dp.$D(\'datemax\')||\'%y-%M-%d\' }' })" id="datemin" name="datemin" value="{$datemin}" class="input-text Wdate" style="width:120px;">
                    -
                    <input type="text" onfocus="WdatePicker({ minDate:'#F{ $dp.$D(\'datemin\') }',maxDate:'%y-%M-%d' })" id="datemax" name="datemax" value="{$datemax}" class="input-text Wdate" style="width:120px;">
                    <input type="text" class="input-text" style="width:250px;display: none" placeholder="输入会员名称" id="username" name="username">
                    <button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 按照日期筛选</button>
                </div>
            </form>
            <div class="cl pd-5 bg-1 bk-gray mt-20">
                <!--<span class="l">-->
                <!--<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>-->
                <!--<a href="javascript:;" onclick="member_add('添加用户','{:url(\'user/member_add\')}','','510')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加用户</a></span>-->
                <!--<span class="r">共有数据：<strong>88</strong> 条</span> -->
                <span style="font-size: 18px">平台手续费总计:{$taxtotal}</span>
            </div>

            <br>
            <div>
                <!--<span style="font-size: 18px">平台手续费总计:{$taxtotal}</span>-->
            </div>

            <div id="tab_demo" class="HuiTab">
                <div class="tabBar clearfix">
                    <span>投注分数总排行</span>
                    <span>赢取分数排行</span>
                    <span>输掉分数排行</span>
                    <span>支付手续费排行</span>
                </div>
                <div class="tabCon">

                    <div class="mt-20">
                        <table class="table table-border table-bordered table-hover table-bg table-sort">
                            <thead>
                            <tr class="text-c">
                                <th width="80">ID</th>
                                <th width="100">用户名</th>
                                <th width="100">称呼</th>
                                <th width="40">累计投注</th>
                                <!--<th width="100">操作</th>-->
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="rewardlist" id="reward"}
                            <tr class="text-c">
                                <td>{$reward.uid}</td>
                                <td><u style="cursor:pointer" class="text-primary" > {$reward.username} </u></td>
                                <th width="100">{$reward.name}</th>
                                <th width="100"> {$reward.score} </th>
                                <!--<td class="td-manage">-->
                                    <!--<a title="记录" href="javasctipt:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe627</i> </a>-->
                                <!--</td>-->
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>


                </div>
                <div class="tabCon">

                    <div class="mt-20">
                        <table class="table table-border table-bordered table-hover table-bg table-sort">
                            <thead>
                            <tr class="text-c">
                                <th width="80">ID</th>
                                <th width="100">用户名</th>
                                <th width="100">称呼</th>
                                <th width="40">累计赢取</th>
                                <!--<th width="100">操作</th>-->
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="winlist" id="win"}
                            <tr class="text-c">
                                <td>{$win.uid}</td>
                                <td><u style="cursor:pointer" class="text-primary" >{$win.username}</u></td>
                                <th width="100">{$win.name}</th>
                                <th width="100">{$win.wintotal}</th>
                                <!--<td class="td-manage">-->
                                    <!--<a title="记录" href="javasctipt:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe627</i> </a>-->
                                <!--</td>-->
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>

                </div>
                <div class="tabCon">
                    <div class="mt-20">
                        <table class="table table-border table-bordered table-hover table-bg table-sort">
                            <thead>
                            <tr class="text-c">
                                <th width="80">ID</th>
                                <th width="100">用户名</th>
                                <th width="100">称呼</th>
                                <th width="40">累计输掉</th>
                                <!--<th width="100">操作</th>-->
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="loselist" id="lose"}
                            <tr class="text-c">
                                <td>{$lose.uid}</td>
                                <td><u style="cursor:pointer" class="text-primary" >{$lose.username}</u></td>
                                <th width="100">{$lose.name}</th>
                                <th width="100">{$lose.losetotal}</th>
                                <!--<td class="td-manage">-->
                                    <!--<a title="记录" href="javasctipt:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe627</i> </a>-->
                                <!--</td>-->
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>

                </div>

                <div class="tabCon">
                    <div class="mt-20">
                        <table class="table table-border table-bordered table-hover table-bg table-sort">
                            <thead>
                            <tr class="text-c">
                                <th width="80">ID</th>
                                <th width="100">用户名</th>
                                <th width="100">称呼</th>
                                <th width="40">累计支付手续费</th>
                                <!--<th width="100">操作</th>-->
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="taxlist" id="tax"}
                            <tr class="text-c">
                                <td>{$tax.uid}</td>
                                <td><u style="cursor:pointer" class="text-primary" >{$tax.username}</u></td>
                                <th width="100">{$tax.name}</th>
                                <th width="100">{$tax.taxtotal}</th>
                                <!--<td class="td-manage">-->
                                <!--<a title="记录" href="javasctipt:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe627</i> </a>-->
                                <!--</td>-->
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>




        </article>
    </div>
</section>

{include file="common/_footer"}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<!--<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>-->
<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">
    jQuery.Huitab =function(tabBar,tabCon,class_name,tabEvent,i){
        var $tab_menu=$(tabBar);
        // 初始化操作
        $tab_menu.removeClass(class_name);
        $(tabBar).eq(i).addClass(class_name);
        $(tabCon).hide();
        $(tabCon).eq(i).show();

        $tab_menu.bind(tabEvent,function(){
            $tab_menu.removeClass(class_name);
            $(this).addClass(class_name);
            var index=$tab_menu.index(this);
            $(tabCon).hide();
            $(tabCon).eq(index).show()})}

    $(function(){
        $.Huitab("#tab_demo .tabBar span","#tab_demo .tabCon","current","click","0");

        // mytable = $('.table-sort').dataTable({
        //     "ajax":"member_record_resouce",
        //     "aaSorting": [[ 1, "desc" ]],//默认第几个排序
        //     "bStateSave": true,//状态保存
        //     "aoColumnDefs": [
        //         //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
        //         {"orderable":false,"aTargets":[0]}// 制定列不参与排序
        //     ]
        // });
        // $('.table-sort tbody').on( 'click', 'tr', function () {
        //     if ( $(this).hasClass('selected') ) {
        //         $(this).removeClass('selected');
        //     }
        //     else {
        //         $('tr.selected').removeClass('selected');
        //         $(this).addClass('selected');
        //     }
        // });
    });
    function member_his(obj, id) {
        layer_show("用户记录","/index.php/admin/user/member_his/uid/"+id+"/type/recharg",800,600);
    }


    function btn_refresh(){
        // mytable.api().ajax.reload();
        window.location = window.location;
    }
    /*用户-添加*/
    function member_add(title,url,w,h){
        layer_show(title,url,w,h);
    }
    /*用户-查看*/
    function member_show(title,url,id,w,h){
        layer_show(title,url,w,h);
    }
    /*用户-停用*/
    function member_stop(obj,id){
        if ($(obj).data('status')==0){
            url = "/index.php/admin/user/member_enable/id/"+id;
            $.get(url,function (e) {
                if (e==1){
                    layer.msg('已启用!',{icon: 4,time:1000});
                    $('.btn-success').click();
                }else{
                    layer.msg('服务器发生错误!',{icon: 5,time:1000});
                }
            });
        }else {
            layer.confirm('确认要停用吗？',function(index){
                url = "/index.php/admin/user/member_stop/id/"+id;
                $.get(url,function (e) {
                    if (e==1){
                        layer.msg('已停用!',{icon: 4,time:1000});
                        $('.btn-success').click();
                    }else{
                        layer.msg('服务器发生错误!',{icon: 5,time:1000});
                    }
                });
            });
        }

    }

    /*用户-启用*/
    function member_start(obj,id){
        layer.confirm('确认要启用吗？',function(index){
            $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="Hui-iconfont">&#xe631;</i></a>');
            $(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
            $(obj).remove();
            layer.msg('已启用!',{icon: 6,time:1000});
        });
    }
    /*用户-编辑*/
    function member_edit(title,url,id,w,h){
        layer_show(title,url,w,h);
    }
    /*密码-修改*/
    function change_password(title,url,id,w,h){
        layer_show(title,url,w,h);
    }

    /*chongzhi */
    function recharge(title, url, id, w, h) {
        layer_show(title,url,w,h);
    }

    /*用户-删除*/
    function member_del(obj,id){
        layer.confirm('确认要删除吗？',function(index){
//		$(obj).parents("tr").remove();
            layer.msg('暂不支持用户删除!',{icon:1,time:1000});
        });
    }
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>